Home

Operator Usage

Name

raw-bar-chart

Description

raw-bar-chart sp
draw a basic bar-chart of the coefficients in the input superposition.
a nice quick visualization of ket coefficients
often combined with a sort operator of some sort
unlike bar-chart[] this operator does not drop empty kets, or rescale the width


Examples

-- simplest example is a bar-chart of a Gaussian:
raw-bar-chart Gaussian[0.7] 50 |x: 10>
    ----------
    x : 6  : |
    x : 7  : ||
    x : 8  : ||||||
    x : 9  : ||||||||||||||||||
    x : 10 : ||||||||||||||||||||||||||||||||||||||||||||||||||
    x : 11 : ||||||||||||||||||
    x : 12 : ||||||
    x : 13 : ||
    x : 14 : |
    ----------
    |raw bar chart>


See also

Operator type

superposition normal